<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class GoodCategory extends Model
{
    //
    protected $fillable = [
        'cname', 'parent_id',
    ];


    public function goods(){
        return $this->hasMany('App\Models\Good','good_category_id','id');
    }

}
